<?xml version="1.0" ?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping
        http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">

    <class name="Symfony\Bridge\Doctrine\Tests\Fixtures\BaseUser">
        <property name="username">
            <constraint name="NotBlank">
                <option name="groups">Registration</option>
            </constraint>
            <constraint name="Length">
                <option name="min">2</option>
                <option name="max">120</option>
                <option name="groups">Registration</option>
            </constraint>
        </property>
    </class>
</constraint-mapping>
